package com.example.controller;

import com.example.entity.Order;
import com.example.service.OrderService;
import jakarta.annotation.Resource;
import java.util.List;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 订单表(Order)表控制层
 *
 * @author 游家纨绔
 * @since 2023-09-09 19:40:00
 */
@RestController
public class OrderController {

	@Resource
	private OrderService orderService;

	// 查询所有订单
	@GetMapping("/queryListOrderAll")
	public List<Order> queryListOrderAll() {
		return orderService.queryListOrderAll();
	}

}
